package com.winshare.saleAssistant.dao;

import com.winshare.saleAssistant.domain.dto.req.CaseIdListDTO;
import com.winshare.saleAssistant.domain.entity.CaseDO;
import com.winshare.saleAssistant.domain.query.CaseQuery;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface CaseMapper {

    int saveCase(CaseDO caseDO);

    int updateCase(CaseDO caseDO);

    int setRead(CaseIdListDTO caseIdListDTO);

    int queryCaseCount(CaseQuery caseQuery);

    List<CaseDO> findCaseListByConditions(CaseQuery caseQuery);

    CaseDO getCase(CaseDO caseDO);

    int setAdopted(CaseIdListDTO caseIdListDTO);
}
